package com.example.demo.consumer;

import com.example.demo.api.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/7/20.
 */
@RestController
public class SayService {

    @Autowired
    private HelloService helloService;

    public String say (String name) {
        return helloService.sayHello(name);
    }
}
